package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StaffBookshelfRegisterDao;
import io.wdb.modules.generator.generator.entity.StaffBookshelfRegisterEntity;
import io.wdb.modules.generator.generator.service.StaffBookshelfRegisterService;



@Service("staffBookshelfRegisterService")
public class StaffBookshelfRegisterServiceImpl implements StaffBookshelfRegisterService {
	@Autowired
	private StaffBookshelfRegisterDao staffBookshelfRegisterDao;
	
	@Override
	public StaffBookshelfRegisterEntity queryObject(Long id){
		return staffBookshelfRegisterDao.queryObject(id);
	}
	
	@Override
	public List<StaffBookshelfRegisterEntity> queryList(Map<String, Object> map){
		return staffBookshelfRegisterDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return staffBookshelfRegisterDao.queryTotal(map);
	}
	
	@Override
	public void save(StaffBookshelfRegisterEntity staffBookshelfRegister){
		staffBookshelfRegisterDao.save(staffBookshelfRegister);
	}
	
	@Override
	public void update(StaffBookshelfRegisterEntity staffBookshelfRegister){
		staffBookshelfRegisterDao.update(staffBookshelfRegister);
	}
	
	@Override
	public void delete(Long id){
		staffBookshelfRegisterDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		staffBookshelfRegisterDao.deleteBatch(ids);
	}
	
}
